package com.nosnow.order.invoking;

import com.nosnow.common.vo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author by bingHeng
 * @version 1.0
 * @Create 2020/5/29 11:05
 */

@Component
@FeignClient("service-edu")
public interface EduClient {

    // 根据课程Id查询课程信息
    @PostMapping("/edu/front/course/getCourseInfoOrder/{id}")
    public CourseWebVoOrder getCourseInfoOrder(@PathVariable("id") String id);
}
